package org.eclipse.emf.cdo.ui.merge.conflict;

import org.eclipse.emf.cdo.common.id.CDOIDAndVersion;
import org.eclipse.emf.cdo.common.revision.delta.CDORevisionDelta;
import org.eclipse.emf.spi.cdo.DefaultCDOMerger.ChangedInTargetAndDetachedInSourceConflict;

/**
 * An Extension to the Conflict provided by CDO. Adds the source ID for this conflict.
 * @author Thomas Halmeschlager
 *
 */
public class extChangedInTargetAndDetachedInSourceConflict extends
		ChangedInTargetAndDetachedInSourceConflict {
	
	/** The source CDO ID. */
	private CDOIDAndVersion sourceID;
	
	/**
	 * Instantiates a new changed-in-target detached-in-source conflict.
	 *
	 * @param targetDelta the feature deltas of the target
	 */
	public extChangedInTargetAndDetachedInSourceConflict(
			CDORevisionDelta targetDelta) {
		super(targetDelta);
	}
	
	/**
	 * Gets the source CDO ID.
	 *
	 * @return the CDO ID
	 */
	public CDOIDAndVersion getSourceID() {
		return sourceID;
	}
	
	/**
	 * Sets the source CDO ID.
	 *
	 * @param sourceID the new source CDO ID
	 */
	public void setSourceID(CDOIDAndVersion sourceID) {
		this.sourceID = sourceID;
	}

}
